package cate.game.play.vo;

import cate.game.play.buff.Buff;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass("buffVO")
public class BuffVO {
	@NoteField("buff tid")
	public int tid;
	@NoteField("buff pid")
	public int pid;
	@NoteField("添加回合")
	public int ra;
	@NoteField("移除回合")
	public Integer rr;
	@NoteField("不可驱散")
	public boolean hd;
	@NoteField("释放者的pid")
	public int casterPid;

	public void readFrom(Buff tar) {
		this.tid = tar.tid;
		this.pid = tar.pid;
		this.ra = tar.roundAdd;
		this.rr = tar.roundRemove;
		this.hd = !tar.cfg.dispelAble();
		this.casterPid = tar.caster.getPid();
	}

}
